//轮播图无缝滚动
function hotFn(){
    let ulObj=document.querySelector('section.hot ul')
    let hotNum=parseInt(ulObj.style.marginLeft)
    t2=setInterval(()=>{
       hotNum--
       if(hotNum<=-2030){
           hotNum=0 
        }
        ulObj.style.marginLeft=`${hotNum}px`
    },10)
}
hotFn()
let liObjs=document.querySelectorAll('section.hot ul li')
liObjs.forEach(item=>{
    item.onmouseover=function(){
        clearInterval(t2)
    }
    item.onmouseout=function(){
        hotFn()
    }
})